<template>
  <div class="dateDrop">
    <el-dropdown>
      <span class="el-dropdown-link">
        {{ nowChoose }}
        <el-icon class="el-icon--right">
          <arrow-down />
        </el-icon>
      </span>
      <template #dropdown>
        <el-dropdown-menu>
          <el-dropdown-item>2023</el-dropdown-item>
        </el-dropdown-menu>
      </template>
    </el-dropdown>
  </div>
</template>
<script lang="ts">
import {
  defineComponent,
  ref,
  reactive,
  watch,
  onMounted,
  onUnmounted,
} from "vue";
import moment from 'moment'
// 声明类型
export default defineComponent({
  props: {},
  components: {},
  setup(props) {
    //变量
    let nowChoose=ref('')
    nowChoose.value=moment().format('yyyy')
    //生命周期
    onMounted(() => {
      //
    });
    onUnmounted(() => {
      //
    });
    return {
        nowChoose,
    };
  },
});
</script>

<style lang="scss" scoped>
@import "@/assets/scss/index.scss";
@import "./tree.scss";
.treeContent {
  background: rgba(255, 255, 255, 0.08);
}
</style>
